package com.atguigu.pojo;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.List;

/**
 * @ClassNAME User
 * @Description
 * @Author wuyafeng atguigu
 * @Date 2021/11/10 14:48
 * @Version 1.0
 **/
@Component
@ConfigurationProperties("user")
public class User implements Serializable {
    private String  username;
    private String password;
    private List<String> hobby;
    private List<Address> addressList;


    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public List<String> getHobby() {
        return hobby;
    }

    public void setHobby(List<String> hobby) {
        this.hobby = hobby;
    }

    public List<Address> getAddressList() {
        return addressList;
    }

    public void setAddressList(List<Address> addressList) {
        this.addressList = addressList;
    }

    @Override
    public String toString() {
        return "User{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", hobby=" + hobby +
                ", addressList=" + addressList +
                '}';
    }
}
